﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Microsoft.IdentityModel.Tokens;
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Text;
using Wixa.Api.Options;
using Wixa.IBusiness.Base_Manage;
using Wixa.Models.Base_Manage;
using Wixa.Models.DTO;

namespace Wixa.Api.Controllers
{
    [Route("[controller]/[action]")]
    [ApiController]
    public class MenusController : ControllerBase
    {
        readonly IMenusBusiness _menusBus;

        public MenusController(IMenusBusiness menusBus)
        {
            _menusBus = menusBus;
        }

        [HttpGet]
        public List<Menus> GetDataList()
        {
            return _menusBus.GetDataList();
        }

    }
}